<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="../../comunes/header.jsp" />
<h2>Edici&oacute;n de la Causa de OT </h2>
<form:form method="POST" modelAttribute="causaParo">
   <table cellspacing="0"><tr><th>Clave:</th><td><c:out value="${causaParo.clave}"/>
            <form:hidden path="clave"/><form:errors path="clave" cssClass="error" /></td></tr>
      <tr><th>Tipo:</th>
         <td>
            <form:radiobutton path="tipo" value="P" label="Paro" />
            <form:radiobutton path="tipo" value="D" label="Defecto" />
            <form:errors path="tipo" cssClass="error" />
         </td>
      </tr>
      <tr><th>Descripci&oacute;n:</th>
         <td>
            <form:input path="descripcion" size="30" maxlength="100" />
            <form:errors path="descripcion" cssClass="error" />
         </td>
      </tr>
      <tr><th>Decripci&oacute;n Corta:</th>
         <td>
            <form:input path="descripcionCorta" size="15" maxlength="15" />
            <form:errors path="descripcionCorta" cssClass="error" />
         </td>
      </tr>
      <tr>
         <td>
            <form:hidden path="activo" />
            <form:hidden path="usuarioCreo" />
            <button type="reset" class="btn_regresar" title="Regresar Listado Causas">Regresar</button>
         </td>
         <td><button type="submit" class="btn_guardar" title="Guardar">Guardar</button></td>
      </tr>
   </table>
</form:form>
<c:url var="regrUrl" value="/catalogos/causas" />
<script type="text/javascript">
   $(document).ready(function() {
      $("#descripcion").focus();
      $(".btn_regresar").click(function() {
         window.location.replace('${regrUrl}');
      });
   });
</script>
<jsp:include page="../../comunes/footer.jsp" />